package com.xiaokan.frame;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class CheckerMouseAdapter extends MouseAdapter {

	private DrawPanel panel;

	public CheckerMouseAdapter(DrawPanel panel) {
		super();
		this.panel = panel;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		int y = e.getX() / 50, x = e.getY() / 50;
		panel.select(x, y);

	}

}
